package org.example.petadoption.service.impl;

import org.example.petadoption.entity.Product;
import org.example.petadoption.entity.ProductInfoDTO;
import org.example.petadoption.mapper.ProductMapper;
import org.example.petadoption.service.IProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author PetAdoption
 * @since 2025-10-20
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public List<ProductInfoDTO> getAllProductInfo() {
        return productMapper.getAllProductInfo();
    }

}
